//
//  DYZNormalCellTableViewCell.m
//  DYZCars
//
//  Created by jdc on 16/8/19.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZNormalCellTableViewCell.h"
#import "DYZHighCarModel.h"
@interface DYZNormalCellTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLable;
@property (weak, nonatomic) IBOutlet UIImageView *carImageView;
@end

@implementation DYZNormalCellTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
/**
 *  车型赋值
 *
 *  @return <#return value description#>
 */
-(void)setCarTypeModel:(DYZHighCarModel *)carTypeModel{
    _carTypeModel = carTypeModel;
    self.nameLable.text = carTypeModel.name;
    self.carImageView.image = [UIImage imageNamed:carTypeModel.url];
}
/**
 *  赋值
 *
 *  @param selected <#selected description#>
 *  @param animated <#animated description#>
 */
-(void)setHighModel:(DYZHighCarModel *)highModel{
    _highModel = highModel;
    self.nameLable.text = highModel.name;
    NSURL *url = [NSURL URLWithString:highModel.url];
    [self.carImageView sd_setImageWithURL:url];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
